/**
 * The Customer entity.
 *
 * @author    
 * @version $Revision: $, $Date: 2006/07/07 20:04:13 $
 *
 *
 */
class Customer {
    static mapping = {
         table 'Ym_Customer'
         version false
         id column:'customer_id'
         customerName column:'customer_name' 
         customerTitle column:'customer_title' 
         customerCompany column:'customer_company' 
         customerMobile column:'customer_mobile' 
         customerTel column:'customer_tel' 
         customerEmail column:'customer_email' 
         customerFax column:'customer_fax' 
         customerQq column:'customer_qq' 
         customerAddress column:'customer_address' 
         customerZjtype column:'customer_zjtype' 
         customerZhengjian column:'customer_zhengjian' 
         customerBirthday column:'customer_birthday' 
         customerType column:'customer_type' 
         customerSalenum column:'customer_salenum' 
         customerOrdernum column:'customer_ordernum' 
         customerCarenum column:'customer_carenum' 
         customerUserid column:'customer_userid' 
         customerParentuserid column:'customer_parentuserid' 
         customerAddtime column:'customer_addtime' 
         customerRecycled column:'customer_Recycled' 
         customerTobirthday column:'customer_tobirthday' 
         customerIspublic column:'customer_ispublic' 
         customerUid column:'customer_uid' 
         customerB2btype column:'customer_b2btype' 
         customerWorkcity column:'customer_workcity' 
         customerFxprovince column:'customer_fxprovince' 
         customerParentcid column:'customer_parentcid' 
         customerMsn column:'customer_msn' 
         customerDept column:'customer_dept' 
         customerWorkprovince column:'customer_workprovince' 
         customerBid column:'customer_bid'
    }
    java.lang.String customerName
    java.lang.String customerTitle
    java.lang.String customerCompany
    java.lang.String customerMobile
    java.lang.String customerTel
    java.lang.String customerEmail
    java.lang.String customerFax
    java.lang.String customerQq
    java.lang.String customerAddress
    java.lang.Integer customerZjtype
    java.lang.String customerZhengjian
    java.lang.String customerBirthday
    java.lang.Integer customerType
    java.lang.Integer customerSalenum
    java.lang.Integer customerOrdernum
    java.lang.Integer customerCarenum
    java.lang.Integer customerUserid
    java.lang.Integer customerParentuserid
    java.sql.Timestamp customerAddtime
    java.lang.Integer customerRecycled
    java.lang.Integer customerTobirthday
    java.lang.Integer customerIspublic
    java.lang.Integer customerUid
    java.lang.Integer customerB2btype
    java.lang.String customerWorkcity
    java.lang.String customerFxprovince
    java.lang.Integer customerParentcid
    java.lang.String customerMsn
    java.lang.String customerDept
    java.lang.String customerWorkprovince
    java.lang.Integer customerBid
    User childuser
    User parentuser
    static constraints = {
        customerName(size: 0..50)
        customerTitle(size: 0..50)
        customerCompany(size: 0..100)
        customerMobile(size: 0..50)
        customerTel(size: 0..50)
        customerEmail(size: 0..50)
        customerFax(size: 0..50)
        customerQq(size: 0..50)
        customerAddress(size: 0..100)
        customerZjtype(nullable: true)
        customerZhengjian(size: 0..50)
        customerBirthday(size: 0..50)
        customerType(nullable: true)
        customerSalenum(nullable: false)
        customerOrdernum(nullable: false)
        customerCarenum(nullable: false)
        customerUserid(nullable: true)
        customerParentuserid(nullable: true)
        customerAddtime(nullable: false)
        customerRecycled(nullable: false)
        customerTobirthday(nullable: true)
        customerIspublic(nullable: true)
        customerUid(nullable: false)
        customerB2btype(nullable: false)
        customerWorkcity(size: 0..50)
        customerFxprovince(size: 0..200)
        customerParentcid(nullable: true)
        customerMsn(size: 0..50)
        customerDept(size: 0..50)
        customerWorkprovince(size: 0..50)
        customerBid(nullable: false)
    }
}
